package com.msc.cili.bootstrap.runner;

import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.CommandLineRunner;
import org.springframework.core.annotation.Order;
import org.springframework.stereotype.Component;

/**
 * 系统启动完成后
 *
 */
@Component
@Order(999)
@Slf4j
public class StartRunner implements CommandLineRunner {


    @Value("${spring.profiles.active}")
    String env;

    @Value("${spring.application.name:none}")
    String name;


    @Override
    public void run(String... args) throws Exception {
        log.info("name:{},env:{}", name, env);
         log.info("系统启动！", "[%s],[%s]启动完成,环境:[%s],IP: [%s]",0x10000000);
         log.info("系统启动完成！");
    }
}
